package com.dtx;

import com.dtx.service.IUserService;
import com.dtx.utils.JsonUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
public class BeeTLSQLApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext context = SpringApplication.run(BeeTLSQLApplication.class, args);
        IUserService userService = context.getBean(IUserService.class);
        System.out.println(JsonUtil.stringifyPretty(userService.findAll()));
    }
}
